package com.cloud.api.domain.sys;

import com.cloud.core.entity.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author haohaibo
 * @since 2023-08-01
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "SysDeptDto")
public class SysDeptDto extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "部门id")
    private String deptId;

    @Schema(description = "父部门id")
    private String parentId;

    @Schema(description = "部门类型，由字典控制")
    private String deptType;

    @Schema(description = "祖级列表")
    private String ancestors;

    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "描述")
    private String description;

    @Schema(description = "显示顺序")
    private Integer orderNum;

    @Schema(description = "负责人")
    private String leader;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "部门状态（0正常 1停用）")
    private Integer enable;

    @Schema(description = "角色ID")
    private List<String> roleId;

    private List<SysDeptDto> children;

}
